package com.workerhelping.service;

import com.workerhelping.elasticsearchEntity.ESRecordVO;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface ESRecordVOService {

    void insertOrUpdate(ESRecordVO esRecordVO);

    void delete(ESRecordVO esRecordVO);


    List<ESRecordVO> findAllByUnreviewed(Integer id, String name, String idNumber, String creditCardNumbers) throws Exception;

    List<ESRecordVO> findAllByApproved(Integer id, String name, String idNumber, String creditCardNumbers) throws Exception;

    List<ESRecordVO> findAllByRejected(Integer id, String name, String idNumber, String creditCardNumbers) throws Exception;

    List<ESRecordVO> findAllByCancelled(Integer id, String name, String idNumber, String creditCardNumbers) throws Exception;

}
